package com.gome.oa;

import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.gome.oa.model.OriginalData;
import com.gome.oa.util.ExcelUtil;

/**
*
* @author: tang li
* @date: 2016年8月13日
* @desc: 
*
*/
public class ExcelReader {

	public List<OriginalData> parse(File excelPath) throws Exception {
		List<OriginalData> result = new ArrayList<OriginalData>();
		Map<String, List<Map<String, String>>> map = ExcelUtil.readExcel(excelPath);
		List<Map<String, String>> list = map.get("Sheet0");
		for(Map<String, String> m : list) {
			OriginalData data = new OriginalData();
			data.setTime(m.get("考勤时间"));
			result.add(data);
		}
		return result;
	}
	
}
